const validator = require('validator')

//标签创建验证
module .exports.validateCreateTag = (name)=>{
    let err = {}

    if(validator.isEmpty(name)){
        err.name = '标签不能为空 !!!'
    }

    let validate = Object.keys(err).length < 1

    return {err,validate}
}
